package me.zhengjie.pojo.Third.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * @Description TODO
 * @Author Long
 * @Date 2021/8/25 9:58
 */
@Data
@Accessors(chain = true)
@ApiModel(description = "第三方对接密码认证DTO")
public class AuthorizationGetTokenDto {

    @ApiModelProperty("authorization code")
    @NotBlank(message = "code不可为空")
    private String code;

    @ApiModelProperty("成功授权后的回调地址（需要与上一步的回调地址保持一致）")
    @NotBlank(message = "回调地址不可为空")
    private String redirect_uri;

    @ApiModelProperty("令牌请求的方式（授权码认证需要填写authorization_code）")
    @NotBlank(message = "令牌请求的方式不可为空")
    private String grant_type;

    @ApiModelProperty("系统id")
    @NotBlank(message = "系统id不可为空")
    private String client_id;

    @ApiModelProperty("系统密码")
    @NotBlank(message = "系统密码不可为空")
    private String client_secret;
}
